package com.example.xd.yunshixun;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.chinamobile.ysx.YSXInMeetingEventHandler;
import com.chinamobile.ysx.YSXInstantMeetingOptions;
import com.chinamobile.ysx.YSXSdk;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_start_meeting).setOnClickListener(this);
        findViewById(R.id.join_start_meeting).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_start_meeting:
                startActivity(new Intent(MainActivity.this, StartMeetingActivity.class));
                break;
            case R.id.join_start_meeting:
                startActivity(new Intent(MainActivity.this, JoinMeetingActivity.class));

                break;
        }
    }


}
